package com.samoiloff.ui.scroll.resize.view {
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import com.samoiloff.framework.AbstractView;
	import com.samoiloff.ui.scroll.resize.ResizeScroll;

	//	import assets.ScrollArrowMc;
//	import assets.SliderBgBmdt;
//	import assets.SliderMidBmdt;
//	import assets.SliderMidOverBmddt;


	/**
	 * @author Samoiloff
	 */
	public class ResizeScrollView extends AbstractView {
		
		//private var _mainMc		: ResizeScroll;
		[Embed(source="assets/sliderArrow.png")]
		private var arrowCls:Class;
		
		[Embed(source="assets/sliderArrowOver.png")]
		private var arrowOverCls:Class;
		
		[Embed(source="assets/sliderMid.png")]
		private var midCls:Class;
		
		[Embed(source="assets/sliderMidOver.png")]
		private var midOverCls:Class;
		
		[Embed(source="assets/sliderBg.png")]
		private var bgCls:Class;
		
		
		private var _upArrow	: ArrowView;
		private var _downArrow	: ArrowView;
		private var _bg			: BgView;

		
		private var _slider		: SliderView;
		
		public var vmKoeff		: Number = 1;
		
		public function ResizeScrollView(mainMc:ResizeScroll) {
			super(mainMc);
			//_mainMc = mainMc;
			
			
			
			
			_upArrow = new ArrowView(new arrowCls(), new arrowOverCls());
			_downArrow = new ArrowView(new arrowCls(), new arrowOverCls());
			_downArrow.mc.scaleY = -1;
			
			_slider		= new SliderView(new midCls(), new midOverCls());
			_bg			= new BgView(new bgCls());
			
			_mainMc.addChild(_bg);
			_mainMc.addChild(_upArrow.mc);
			_mainMc.addChild(_downArrow.mc);
			_mainMc.addChild(_slider.mc);
		}
		
		public function get upArrow(): ArrowView {
			return _upArrow;
		}
		
		public function get downArrow(): ArrowView {
			return _downArrow;
		}
		
		public function get bg(): BgView {
			return _bg;
		}
		
		public function get slider(): SliderView {
			return _slider;
		}
		
	}
}
